<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>生产人员</title>
    <c:import url="../../header.jsp"/>
    <link rel="stylesheet" type="text/css"
          href="${basePath}/static/css/production.css?v=${version}"/>
</head>
<body>
<div class="body-main">
    <!--生产人员 start-->
    <div class="finan-panel">
        <div class="finan-tit">
            <b>生产人员</b>
        </div>
        <div class="panel-main">
            <table class="layui-table table-info text-center">
                <thead>
                <tr>
                    <th>姓名</th>
                    <th>所属团队</th>
                    <th>最近生产节点</th>
                    <th>最近生产节点完成时间</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="flowUser" items="${flowUserList}">
                    <tr>
                        <td>${flowUser.assistUserName}</td>
                        <td>${flowUser.assistUserOrgName}</td>
                        <td>${flowUser.latestEndNodeName}</td>
                        <td><fmt:formatDate value="${flowUser.latestEndNodeTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
    <div class="finan-panel">
        <div class="finan-tit">
            <b>人员变更记录</b>
        </div>
        <div class="panel-main">
            <table class="layui-table table-info text-center">
                <thead>
                <tr>
                    <th>姓名</th>
                    <th>所属团队</th>
                    <th>变更类型</th>
                    <th>操作人</th>
                    <th>操作时间</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="recordsUser" items="${recordsUserList}">
                    <tr>
                        <td>${recordsUser.beOperaterName}</td>
                        <td>${recordsUser.beOperaterOrgName}</td>
                        <td>
                            <c:if test="${recordsUser.operateType == '24'}">
                                转单
                            </c:if>
                            <c:if test="${recordsUser.operateType == '26'}">
                                移交
                            </c:if>
                            <c:if test="${recordsUser.operateType == '29'}">
                                新增
                            </c:if>
                            <c:if test="${recordsUser.operateType == '30'}">
                                移除
                            </c:if>
                        </td>
                        <td>${recordsUser.operaterName}</td>
                        <td><fmt:formatDate value="${recordsUser.operateTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
    <!--生产人员 end-->
</div>
<c:import url="/WEB-INF/jsp/footer.jsp"/>
</body>
</html>
